I truly feel for your loss.
Your friendship and affection for your lost friend are self-evident, but tragically, such sincere displays may never be enough to rescue loved ones out of whatever darkness they have been pulled into. You honestly did what you could, but he couldn't see any light in his life.
May such tragic souls encourage us all to view our friends and family as beautiful and precious gifts - and to tell them that they are such.